
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" src="/js/jquery-1.8.0.min.js"></script>
    <title>会员列表 - 票付通分销平台</title>
</head>
<body>
<link rel="stylesheet" href="/css/aliceui.min.css"/>
<link rel="stylesheet" href="/css/resetui.css"/>
<link rel="stylesheet" href="/css/page.css"/>
<link rel="stylesheet" href="css/list.css"/>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<style type="text/css">
    .dname_input{
        border:0 none;
    }
    .red{
        color:#FF0000;
    }
    .green{
        color:#009005;
    }
    .gray{
        color:#999;
    }
    .fenyeiWrap{
        clear: none;
    }
    .ui-table td{
        border-bottom:1px solid #999;
    }
    .com_type{
        color: #b70725;
    }
    .pinput-txt{
        width: 200px; height: 22px;line-height: 22px;border:1px solid #CCC;
    }
    .pinput-txt_a{
        width: 50px; height: 20px;line-height: 20px;border:1px solid #CCC;margin-top:5px;margin-bottom:5px;
    }
    .pinput-txt_b{
        width: 25px; height: 20px;line-height: 20px;border:1px solid #CCC;margin-top:5px;margin-bottom:5px;
    }
    h4{text-align:center;}
    .wid80{ width: 90px; height: 20px;line-height: 20px;border:1px solid #CCC;margin-top:5px;margin-right:10px;margin-bottom:5px;}
    .wid90{ width: 50px; height: 20px;line-height: 20px;border:1px solid #CCC;margin-top:5px;margin-left:35px;margin-bottom:5px;}
    .tl_z{margin-right:25px;}
    .tl_f{margin-left:25px;}
    .tips{margin-left:-20px;}
    .tl{margin-left:15px;}
    p {line-height: 3;}
    .grp_red{color: red}
    .black{background:#525252;filter:alpha(opacity:80);opacity:0.8;position:fixed;left:0;top:0;z-index:999999;}
    .alert_box{z-index:999999;position:fixed;top:50%;left:50%;width:480px;height:450px;margin:-175px 0 0 -240px;border:1px solid #E5E5E5;border-radius:3px;-moz-border-radius:3px;background-color:#FFF;display:none;}
    .box_title{line-height:45px;padding-left:15px;background-color:#F3F3F3;font-size:16px;border-bottom:1px solid #E5E5E5;color:#313B44;}
    .click_close{float:right;margin-right:15px;color:#96A3AC;cursor:pointer;}
    .box_con{padding-top:20px;width:365px;margin:0 auto;font-size:14px;}
    .box_con input{width:220px;padding-left:15px;height:33px;border:1px solid #E5E5E5;margin-top:5px;float:right;}
    .box_con li{height:45px;line-height:45px;margin-bottom:5px;line-height:45px;color:#707E89;}
    /*.box_con span{display:inline-block;width:235px;float:right;color:#333C43;}*/
    .save{display:inline-block;width:130px;height:35px;line-height:35px;text-align:center;background-color:#0897D9;color:#FFF;}
    .cancel{display:inline-block;margin-left:20px;color:#0697D9;}
    .box_con a, .box_con a:link, .box_con a:visited, .box_con a:active{color:#ED6D34;text-decoration:none;}
    .box_con .save, .box_con .save:link, .box_con .save:visited, .box_con .save:active{color:#FFF;text-decoration:none;}
</style>
<div class="wrap">
    <form name="ourform" class="search_form ">
        <input name="gid" type="hidden" value="<?=$_GET['gid']?>"/>
        <input name="act" type="hidden" id="act"/>
        <input name="group_id" type="hidden" id="group_id" value="<?=$_REQUEST['group_id']?>"/>
        <fieldset class="search-box">
            <legend>会员查询</legend>
            <table class="search-tbl" cellspacing="0">
                <tr>
                    <td class="tab1">
                        <label class="t">查询条件:</label>
                        <select name="searchType" id="search1">
                            <option value="-1">--请选择--</option>
                            <option value="8" <?=$_GET['searchType']==8? 'selected':'';?>>企业名称</option>
                            <option value="1" <?=$_GET['searchType']==1? 'selected':'';?>>账号名称</option>
                            <option value="7" <?=$_GET['searchType']==7? 'selected':'';?>>账号</option>
                            <option value="2" <?=$_GET['searchType']==2? 'selected':'';?>>姓名</option>
                            <option value="3" <?=$_GET['searchType']==3? 'selected':'';?>>手机号</option>
                            <option value="5" <?=$_GET['searchType']==5? 'selected':'';?>>ID</option>
                            <option value="6" <?=$_GET['searchType']==6? 'selected':'';?>>接口编码</option>
                            <option value="4" <?=$_GET['searchType']==4? 'selected':'';?>>支付宝账号</option>


                        </select>
                        <input type="text" name="squery" class="input-txt" id="squery" value="<?=$_GET['squery']?>"/>
                    </td>
                    <td class="tab2">
                        <label class="t">会员类型</label>
                        <select name="dtype">
                            <option value="-1">选择</option>
                            <option value="99" <?=isset($_GET['dtype']) && $_GET['dtype']==99? 'selected':'';?>>供应商</option>
                            <option value="1" <?=$_GET['dtype']==1? 'selected':'';?>>分销商</option>
                            <option value="2" <?=$_GET['dtype']==2? 'selected':'';?>>资源方</option>
                            <option value="5" <?=$_GET['dtype']==5? 'selected':'';?>>普通会员</option>
                            <option value="6" <?=$_GET['dtype']==6? 'selected':'';?>>员工</option>
                            <option value="7" <?=$_GET['dtype']==7? 'selected':'';?>>集团</option>
                        </select>
                    </td>
                    <td>
                        <label class="t">状态</label>
                        <select name="status">
                            <option value="-1">选择</option>
                            <option value="0" <?=$_GET['status']==0? 'selected':'';?>>正常</option>
                            <option value="1" <?=$_GET['status']==1? 'selected':'';?>>禁用</option>
                            <option value="3" <?=$_GET['status']==3? 'selected':'';?>>未审核</option>
                            <option value="2" <?=$_GET['status']==2? 'selected':'';?>>删除</option>
                        </select>
                    </td>
                    <td>
                        <div>
                            <label class="t">注册时间:</label>
                            从<input readonly="readonly" class="t1 tt1 w80 input-txt" type="text" name="btime1" onfocus="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$params['bt1']?>"/>
                            至<input type="text" class="t2 tt1 w80 input-txt" readonly="readonly" name="etime1" onfocus="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$params['et1']?>"/>
                        </div>
                        <div>
                            <label class="t">登录时间:</label>
                            从<input readonly="readonly" class="t1 tt1 w80 input-txt" type="text" name="btime2" onfocus="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$params['bt2']?>"/>
                            至<input type="text" class="t2 tt1 w80 input-txt" readonly="readonly" name="etime2" onfocus="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$params['et2']?>"/>
                        </div>
                        <div>
                            <label class="t">协议时间:</label>
                            从<input readonly="readonly" class="t1 tt1 w80 input-txt" type="text" name="btime3" onfocus="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$params['bt3']?>"/>
                            至<input type="text" class="t2 tt1 w80 input-txt" readonly="readonly" name="etime3" onfocus="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$params['et3']?>"/>
                        </div>
                    </td>
                    <td style="width:140px">

                        签单人员:
                        <select name="select_salesID" id="select_salesID">
                            <option value="0">请选择</option>
                            <?foreach($saleMan as $k=> $v){?>
                                <option value="<?=$k?>" <?if($_GET['select_salesID']==$k){echo  "selected=true";}?>><?=$v?></option>
                            <?}?>
                        </select>
                        客服人员:
                        <select name="select_kefuID" id="select_kefuID">
                            <option value="0">请选择</option>
                            <?foreach($kefuID as $k=> $v){?>
                                <option value="<?=$k?>" <?if($_GET['select_kefuID']==$k){echo  "selected=true";}?>><?=$v?></option>
                            <?}?>
                        </select>
                    </td>
                    <td>
                        <button id="searchBtn" type="button" class="ui-button ui-button-lorange" >查  找</button>
                        <button id="ExcelBtn" type="button" class="ui-button ui-button-lorange_a">导  出</button>
                    </td>

                </tr>
            </table>
            <span id="search_kind">账户类型：
            <a class="" key="group_id" kvalue="">全部</a>
            <a class="<?=$_GET['group_id']==1?'grp_red':''?>" key="group_id" kvalue="1">普通帐号</a>
            <a class="<?=$_GET['group_id']==6?'grp_red':''?>" key="group_id" kvalue="6">签约账号</a>
            <a class="<?=$_GET['group_id']==2?'grp_red':''?>" key="group_id" kvalue="2">测试账户</a>
            <a class="<?=$_GET['group_id']==3?'grp_red':''?>" key="group_id" kvalue="3">内部点餐账号</a>
            <a class="<?=$_GET['group_id']==4?'grp_red':''?>" key="group_id" kvalue="4">云顶账户</a>
            <a class="<?=$_GET['group_id']==5?'grp_red':''?>" key="group_id" kvalue="5">鼓浪屿账户</a>
            </span>
        </fieldset>
    </form>
    <!---->
    <form action="<?=$_SERVER['PHP_SELF']?>" method="post" target="hideFrame">
        <div class="ui-table-container">
            <table class="ui-table ui-table-noborder"><!-- 可以在class中加入ui-table-inbox或ui-table-noborder分别适应不同的情况 -->
                <thead>
                <tr>
                    <th>ID</th>
                    <!--<th>创建时间</th>-->
                    <th>身份</th>
                    <th style="width:10%;">账户名称</th>
                    <th>企业名称</th>
                    <th>帐号</th>
                    <th>接口编码</th>
                    <th>联系人</th>
                    <th>公司简称</th>
                    <th>手机</th>
                    <th>账户余额</th>
                    <!--<th>支付宝账号</th>-->
                    <th>状态</th>
                    <th>认证状态</th>
                    <th>登录/创建时间</th>
                    <?if(!$_GET['gid']):?>
                        <th>操作</th>
                    <?endif;?>
                </tr>
                </thead>
                <tbody id="mem_list_tbd">
                <?foreach($mem_list as $list):?>
                    <?
                    $dname = urlencode($list['dname']);
                    $money = $mem->ShowBalance($list['id'])/100;
                    if($money>0) $m_c = 'red';
                    elseif($money<0) $m_c = 'green';
                    else $m_c = 'gray';
                    ?>
                    <tr>
                        <td class="mid" data-mid="<?=$list['id']?>">
                            <input type="checkbox" name="mid[]" value="<?=$list['id'].'|'.$list['dtype']?>"/>
                            <?=$list['id']?>
                            <br/><a href="javascript:;" data-id="<?=$list['id']?>" class="edit">修改</a>
                        </td>
                        <td><?=$LD[$list['dtype']]?></td>
                        <td id="editInfo_<?=$list['id']?>" data-ast="<?=$list['add_saler_type']?>" data-jt-acc="<?=$list['jiutian_auth']?>" data-refund_back="<?=$list['refund_back']?>" data-group_id="<?=$list['group_id']?>">
                            [<span class="com_type"><?=$list['com_type']?></span>]
                            <span class="dname"><?=$list['dname']?></span>
                            </td>
                        <td id="editInfo_c<?=$list['id']?>">
                            <span class="com_name"><?=$list['com_name']?></span>
                        </td>
                        <td><?=$list['account']?></td>
                        <td id="dcode_<?=$list['id']?>"><?=$list['dcode']?></td>
                        <td><span class="sex" data-fid="<?=$list['eid'].'|'.$list['fid']?>"><?=$list['sex']=='M'? '[先生]':'[女士]'?></span><?=$list['cname']?></td>
                        <td><?=$list['short_company_name']?></td>
                        <td><?=$list['mobile']?></td>
                        <td><span class="<?=$m_c?>"><?=$money?></span></td>
                        <!--<td><?//=$list['alipay']?></td>-->
                        <td class="status"><?=$LS[$list['status']]?></td>
                        <td class="status"><?=$crtAuth_txt[$list['certi_status']]?></td>
                        <td>登录:<?=$list['lasttime']?><br/>创建:<?=$list['creattime']?></td>
                        <?if(!$_GET['gid']):?>
                            <td>
                                <?if($list['dtype']==7):?>
                                    <a target="_blank" href="/g_info.html?id=<?=$list['id']?>">详情</a>
                                    <a target="_blank" href="relations.php?t=<?=$dname?>&id=<?=$list['id']?>&type=3&group=1">成员</a>
                                <?else:?>
                                    <?if($list['dtype']==0):?>
                                        <a target="_blank" href="relations.php?t=<?=$dname?>&id=<?=$list['id']?>&type=1">分销商</a>
                                        <a target="_blank" href="relations.php?t=<?=$dname?>&id=<?=$list['id']?>&type=2">资源方</a>
                                    <?endif;?>
                                    <?if($list['dtype']==1 || $list['dtype']==0 ):?>
                                        <a target="_blank" href="/rechDist.html?id=<?=$list['id']?>">充值</a>
                                    <?endif;?>
                                    <a target="_blank" href="relations.php?t=<?=$dname?>&id=<?=$list['id']?>&type=0">供应商</a>
                                    <a target="_blank" href="javascript:void(0);" data-mid="<?=$list['id']?>" class="del_account">删除</a>
                                    <a target="_blank" href="javascript:void(0);" data-mid="<?=$list['id']?>" class="reset_password">重置密码</a>
                                    <br/>
                                    <a target="_blank" href="relations.php?t=<?=$dname?>&id=<?=$list['id']?>&type=3">员工</a>
                                    <a target="_blank" href="/userinfo.html?id=<?=$list['id']?>">详情</a>

                                    <?if($list['status']==3):?>
                                        <a href="javascript:;" class="verify" data-status="0">通过</a>
                                        <a href="javascript:;" class="verify" data-status="1">拒绝</a>
                                    <? elseif($list['status']==0):?>
                                        <a href="javascript:;" class="verify" data-status="1">禁用</a>
                                    <?elseif($list['status']==1):?>
                                        <a href="javascript:;" class="verify" data-status="0">启用</a>
                                    <?endif;?>
                                <?endif;?>
                                <a target="_blank" href="/saleList.html?id=<?=$list['id']?>">售卖产品</a>
                                <a  href="#" class="saleID">签单人员</a>
                            </td>
                        <?endif;?>
                    </tr>
                <?endforeach;?>
                </tbody>
            </table>
            <div class="list-foot">
                <?if(isset($_GET['gid']) && is_numeric($_GET['gid'])):?>
                    <input name="gid" type="hidden" value="<?=$_GET['gid']?>"/>
                    <iframe id="hideFrame" name="hideFrame" src="about:blank"
                            frameborder="0" style="display: none;width: 0;height: 0;"></iframe>
                    <div class="left" style="float: left; width: 100px;">
                        <button type="submit" >合并供应商到集团</button>
                    </div>
                <?endif;?>
                <?page($total_rows,$currentPage,$pageSize);?>
            </div>
        </div>
    </form>
    <div class="black"></div>
    <div class="alert_box">
        <div class="box_title">签单|客服人员管理<span class="click_close">&#10006;</span></div>
        <ul class="box_con">
            <li>
<!--                <span>-->
                    签单人员:
                    <select name="salesID" id="salesID">
                        <option value="0">请选择</option>
                        <?foreach($saleMan as $k=> $v){?>
                        <option value="<?=$k?>"><?=$v?></option>
                        <?}?>
                    </select>
                    客服人员:
                    <select name="kefuID" id="kefuID">
                        <option value="0">请选择</option>
                        <?foreach($kefuID as $k=> $v){?>
                            <option value="<?=$k?>"><?=$v?></option>
                        <?}?>
                    </select>
                <input type="hidden" name="z_salesID" value="0">
<!--                </span>-->
            </li>
            <li>
                协议开始日期<input type="date" id="protocol_start"/>
            </li>
            <li>
                协议截止日期<input type="date" id="protocol_end"/>
            </li>
            <li style="height:120px">
                <div style="display:inline-block;overflow:auto">
                    协议标准 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </div>
                <textarea style="margin-top:10px;height:100px;position:absolute;left:185px;width:235px;" id="protocol_main"></textarea>
            </li>
            <li>
<!--                <span>-->
                    <a class="save" href="#">确 定</a><a class="cancel" href="#">取消</a>
<!--                </span>-->
            </li>
        </ul>
    </div>
</div>

<script type="text/javascript" src="/js/Calendar.js"></script>
<script type="text/javascript" src="/js/moment.min.js"></script>
<script type="text/javascript" src="/js/d.js"></script>
<link rel="stylesheet" href="/css/easydialog.css"/>
<script type="text/javascript" src="/js/easydialog.min.js"></script>
<script type="text/javascript" src="admin.js"></script>
</body>
</html>